Fix bug 7013, only do send event if wanted state != current state.
authorJan D <jan.h.d@swipnet.se>
Sun, 12 Sep 2010 13:23:59 +0000 (15:23 +0200)
committerJan D <jan.h.d@swipnet.se>
Sun, 12 Sep 2010 13:23:59 +0000 (15:23 +0200)
commiteca2d60f228c4e4782c17f5a1bd6d778e7f7f445
tree6e1b157c6332f1deb00962fe76b8e3072207856f
parent27c75a15e755d69b603cb84bcf69bcae8c6901e8
Fix bug 7013, only do send event if wanted state != current state.

* xterm.c (get_current_vm_state): New function.
(do_ewmh_fullscreen): Call get_current_vm_state and compare with
want_fullscreen so set_wm_state calls are few (Bug#7013).
(x_handle_net_wm_state): Move code to get_current_vm_state and
call that function.
src/ChangeLog
src/xterm.c